package com.haynes.social.util;

import cn.hutool.core.util.RandomUtil;

import java.util.Random;
import java.util.UUID;

/**
 * ID生成类
 * @Author Haynes
 * @Date 2023/5/27 20:03
 * @PackageName:com.haynes.social.util
 * @ClassName: IdGeneration
 */
public class IdGeneration {
    /**
     *32位默认长度的uuid
     * (获取32位uuid)
     *
     * @return
     */
    public static  Long getUUID()
    {
        return Long.parseLong(RandomUtil.randomNumbers(8));
    }
}
